package com.caiheng.api.entity.estate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 物业费相关费用明细对象 property_fee_order_info
 *
 * @author ruoyi
 * @date 2022-07-16
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("property_fee_order_info")
public class PropertyFeeOrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 业主微信id
     */
    private Integer userId;

    /**
     * 所在小区id
     */
    private Integer estateId;

    /**
     * 房间id
     */
    private Integer roomId;

    /**
     * 费用类型
     */
    private String feeType;

    /**
     * 开始月份
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginDate;

    /**
     * 结束月份
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    /**
     * 交费月数
     */
    private Integer monthCount;

    /**
     * 总需交费
     */
    private BigDecimal totalPrice;

    /**
     * 支付缴费金额
     */
    private BigDecimal payPrice;

    /**
     * 优惠金额
     */
    private BigDecimal youhuiPrice;

    /**
     *  单价
     */
    private BigDecimal singlePrice;

    private Double count;
    private Double beginCount;
    private Double endCount;

    private BigDecimal attachPrice;
    private BigDecimal attachSinglePrice;
    private BigDecimal attachYouhuiPrice;


    /**
     * 交费状态
     */
    private Integer state;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    @TableField(exist = false)
    private String beginMonth;

    @TableField(exist = false)
    private String endMonth;
}
